***Party Institutionalization Project - Tyler Coleman, December 13th, 2024***

use "partyinstimptwo.dta", clear

mi import flong, m(imp) id(v1) imputed(petit_init avdtotal partyorg partybranch linkages platform cohesion retaliation total_annual_petitions reer_66 polity2 totalannualimports popgrowth koflibtrade gdpgr import_gr unemployment floatdummy execpartyage avgpartyage fixeddummy cim inwardstock outwardstock koftrade koffince exports imports systemic_cris)

mi xtset ccode year

**Primary Models

*Table 2: Models 1-5 - Petition Initiations

mi estimate: xtnbreg petit_init partyorg koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init partybranch koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init linkages koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init platform koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init cohesion koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

*Table 3: Models 6-10 - Petitions Imposed

mi estimate: xtnbreg avdtotal partyorg koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe

mi estimate: xtnbreg avdtotal partybranch koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg avdtotal linkages koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe

mi estimate: xtnbreg avdtotal platform koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe

mi estimate: xtnbreg avdtotal cohesion koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

**Robustness

*Table 4: Population Growth

mi estimate: xtnbreg petit_init partyorg koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init partybranch koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init linkages koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init platform koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init cohesion koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

*Table 6: Random Effects

mi estimate: xtnbreg petit_init partyorg koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re 

mi estimate: xtnbreg petit_init partybranch koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re 

mi estimate: xtnbreg petit_init linkages koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re 

mi estimate: xtnbreg petit_init platform koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re 

mi estimate: xtnbreg petit_init cohesion koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re

*Table 7: Random Effects, Imposed 

mi estimate: xtnbreg avdtotal partyorg koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re

mi estimate: xtnbreg avdtotal partybranch koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re

mi estimate: xtnbreg avdtotal linkages koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re

mi estimate: xtnbreg avdtotal platform koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re

mi estimate: xtnbreg avdtotal cohesion koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, re

*Table 8: Population Growth, Imposed

mi estimate: xtnbreg avdtotal partyorg koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg avdtotal partybranch koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg avdtotal linkages koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg avdtotal platform koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg avdtotal cohesion koflibtrade retaliation reer_66 polity2 popgrowth gdpgr import_gr systemic_cris, fe 

*Table 5: Petition Initiations, No U.S.

drop if ccode == 2

mi estimate: xtnbreg petit_init partyorg koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init partybranch koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init linkages koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init platform koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init cohesion koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe

clear 

*Table 9: AR Poisson

import excel "partyavdbase.xls", sheet("Sheet1") firstrow allstring

destring, replace

arpois petit_init partyorg koflibtrade retaliation reer_66 polity2 GDPGr Import_Gr systemic_cris, ar(1) fe 

drop _z

drop _rho1

arpois petit_init partybranch koflibtrade retaliation reer_66 polity2 GDPGr Import_Gr systemic_cris, ar(1) fe 

drop _z 

drop _rho1

arpois petit_init linkages koflibtrade retaliation reer_66 polity2 GDPGr Import_Gr systemic_cris, ar(1) fe 

drop _z

drop _rho1

arpois petit_init platform koflibtrade retaliation reer_66 polity2 GDPGr Import_Gr systemic_cris, ar(1) fe 

drop _z 

drop _rho1

arpois petit_init cohesion koflibtrade retaliation reer_66 polity2 GDPGr Import_Gr systemic_cris, ar(1) fe 

*Table 10: Country Size - Population Growth

use "antipopgdp.dta", clear

mi import flong, m(imp) id(v1) imputed(petit_init avdtotal partyorg partybranch linkages platform cohesion retaliation total_annual_petitions reer_66 polity2 totalannualimports  koflibtrade gdpgr import_gr unemployment floatdummy execpartyage avgpartyage fixeddummy lnpop cim inwardstock outwardstock koftrade koffince exports imports systemic_cris)

mi xtset ccode year

mi estimate: xtnbreg petit_init partyorg koflibtrade lnpop retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init partybranch koflibtrade lnpop retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init linkages koflibtrade lnpop retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init platform koflibtrade lnpop retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe 

mi estimate: xtnbreg petit_init cohesion koflibtrade lnpop retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe

*Table 11: Length of Tenure and Average Party Age

use "partyinstimptwo.dta", clear

mi import flong, m(imp) id(v1) imputed(petit_init avdtotal partyorg partybranch linkages platform cohesion retaliation total_annual_petitions reer_66 polity2 totalannualimports popgrowth koflibtrade gdpgr import_gr unemployment floatdummy execpartyage avgpartyage fixeddummy cim inwardstock outwardstock koftrade koffince exports imports systemic_cris)

mi xtset ccode year

mi estimate: xtnbreg petit_init partyyear koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe

mi estimate: xtnbreg petit_init avgpartyage koflibtrade retaliation reer_66 polity2 gdpgr import_gr systemic_cris, fe

clear
